﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using HaiFengShop.Utils;
using HaiFengShop.Filter;
using HaiFengShop.Service;
using System.IO;
using System.DrawingCore.Imaging;
using HaiFengShop.Entity;
using Newtonsoft.Json.Linq;

namespace HaiFengShop.Controllers
{
    [ApiController]
    [Route("api/[controller]/[action]")]
    public class IndexController : ControllerBase
    {

        private readonly IndexService  indexService;

        public IndexController(IndexService  indexService)
        {
            this.indexService = indexService;
        }
        /// <summary>
        /// 首页数据接口
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public IActionResult AppInfo()
        {
            return Ok(indexService.AppInfo());
        }
    }
}
